//Hand header

#include <iostream>
#include "card.h"

using namespace std;

enum handType {NOHAND, PAIR, TWO_PAIR, THREE_KIND, STRAIGHT, FLUSH, FULL_HOUSE, FOUR_KIND, STRAIGHT_FLUSH};

class Hand{
private:
	int size;
	int index;
	Card hand[5];
public:
	Hand();
	Hand(int Hsize);
	void displayHand();
	void addCard(Card);
	bool disCard(int index);//returns true if card was discarded (if index valid)
        Card getCard(int index) {return hand[index];}
	handType findHand();//finds out what kind of hand you have and returns an enumerated type, call it once discards and adds are over with.
	bool isFull();
	bool isEmpty();
	friend ostream& operator<<(ostream& out, Hand myHand);
};